const { defineConfig } = require('@vue/cli-service')
const path = require("path")
const webpack = require("webpack")

module.exports = {
  publicPath: '/',
  devServer: {
    host: 'localhost',
    proxy: {
      '/api': {
        target: `http://zp.eapjfz.com/recruit`,
        // target: `http://localhost:8088`,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    },
    disableHostCheck: true
  },
  chainWebpack: config => {
    config.module
      .rule('worker')
      .test(/\.worker\.js$/)
      .use('worker-loader')
      .loader('worker-loader')
      .options({
        inline: true,
        fallback: false
      })
  }
}


